Remark: Attention on the difference between random.randint(a,b): random integer including b and numpy.random.randint(a,b) random integer excluding b. I imported random accidentally from numpy and then all the codes give strange results. by Maximilian Trescher
Thanks; to get help on a function, you can either use the python command line, e.g.
Minor remark. I think that question 4 of "Model 1 - Markov Chain MC" is not written correctly. If you replace the two lines of question 3 with the code proposed in question 4, you are not updating k. Either you only replace the first line, or you add another line (k=l), or you just use k and do not introduce l. - tommaso.comparin
Thank you! The two lines of question 3 should indeed be replaced by: k = (k + random.randint(0,1)*2 -1)%L - mhkoepf
Please ask your questions below by directly editing the page
To edit the page, you have to become a member of the wiki by cliking on the Join link (top-right of the page), or by sending an email to one of us.
You can insert math formulæ using LaTeX code: e.g. typing
[[math]] \pi_C(t+1)=\sum_{C'} \pi_{C'}(t) p_{C' \to C} [[math]]yields:Questions and Remarks:
Thanks; to get help on a function, you can either use the python command line, e.g.
Thank you! The two lines of question 3 should indeed be replaced by: k = (k + random.randint(0,1)*2 -1)%L -